package commands;

import game.logic.Table.Position;
import game.logic.Table.TableSide;

/**
 * Cup Command
 * 
 * Command object representing a sunken cup
 * @author jeff
 *
 */
public class CupCommand extends Command{

	private TableSide side;
	private Position pos;
	
	/**
	 * constructor
	 * 
	 * @param side
	 * @param pos
	 */
	public CupCommand (TableSide side, Position pos) {
		super();
		this.side = side;
		this.pos = pos;
	}
	/**
	 * returns "CUP" for a cup command
	 */
	@Override
	public String getType() {
		return "CUP";
	}

	/**
	 * returns the side of the table the cup was hit on
	 */
	@Override
	public TableSide getSide() {
		return side;
	}
	
	/**
	 * returns the position the cup was in 
	 * @return
	 */
	public Position getPostion() {
		return pos;
	}

}
